import traceback
from functools import wraps


def robust(actual_do):
    @wraps(actual_do)
    def add_robust(*args, **keyargs):
        try:
            print('经过robust装饰器')
            return actual_do(*args, **keyargs)
        except:
            print('Error execute: %s' % actual_do.__name__)
            traceback.print_exc()

    return add_robust
